<extend name="./Application/Admin/View/base.html" />
<block name="title"><title><?php echo C(APP_NAME);?>PC端管理</title></block>
<block name="stylesheets">
<link rel="stylesheet" href="__PUBLIC__/assets/css/jquery-ui.css" />
</block>
<block name="stylecss">
<style type='text/css'>
	.pages a,.pages span {
	    display:inline-block;
	    padding:5px 9px;
	    margin:0 1px;
	    border:1px solid #f0f0f0;
	}
	.pages a,.pages li {
	    display:inline-block;
	    list-style: none;
	    text-decoration:none; color:#58A0D3;
	}
	.pages a.first,.pages a.prev,.pages a.next,.pages a.end{
	    margin:0;
	}
	.pages a:hover{
	    border-color:#50A8E6;
	}
	.pages span.current{
	    background:#50A8E6;
	    color:#FFF;
	    font-weight:700;
	    border-color:#50A8E6;
	}
</style>
</block>
<block name="smallmenu">
<ul class="breadcrumb">
	<li>
		<i class="ace-icon fa fa-home home-icon"></i>
		<a href="{:U('Index/index')}">主页</a>
	</li>

	<li class="active">建议反馈列表</li>
</ul><!-- /.breadcrumb -->

</block>

<block name="content">
	<div class="accordion" id="accordion2" style="border:1px solid #cccccc;padding:10px;border-radius:8px;margin-bottom:10px">
		<div class="accordion-group">
			<div class="accordion-heading">
				<a class="accordion-toggle collapsed" style="font-size:14px;" data-toggle="collapse" data-parent="#accordion2" href="#collapseSelect"> 请选择查询条件 </a>
			</div>
				<div id="collapseSelect" class="accordion-body collapse" style="height: 0px;padding-top:10px">
					<div class="accordion-inner">
						<form action="" id="form" name="selectUserForm" method="get">
							<input type="hidden" name="p" value="1">
							<table class="table" style="margin:0">
								<tr>
									<td>类型： <select name="suggest_type" id=""><option value="0">-请选择-</option><option value="1">信息举报</option><option value="2">完善建议</option><option value="3">相关咨询</option><option value="4">考级反馈</option><option value="5">其他问题</option></select></td>
									<td>状态： <select name="suggest_status" id=""><option value="0">-请选择-</option><option value="1">未查看</option><option value="2">已查看</option></select></td>
									<td><button class="btn btn-sm btn-success" type="submit">查询</button></td>
								</tr>
							</table>
							
						</form>
					</div>
				</div>
		</div>
	</div>
	<input type="hidden" id="crontab-s" />

	<table id="sample-table-1" class="table table-striped table-bordered table-hover">
		<thead>
			<tr>
			    <th class="center">编号</th>
				<th class="center">midi ID</th>
				<th class="center">昵称</th>
				<th class="center">类型</th>
				<th class="center"><i class="ace-icon fa fa-clock-o bigger-110 hidden-480"></i>反馈时间</th>
				<th class="center">状态</th>
				<th class="center">操作</th>
			</tr>
		</thead>

		<tbody>
			<foreach name="suggest_arr" item="v">
			<tr style="text-align:center">
				<td class="center">{$v.suggest_id}</td>
				<td class="center">{$v.suggest_user_id|formatNO=6}</td>
				<td>{$v.user_nickname}</td>
				<td>
					<?php if ($v['suggest_type'] == 1): ?>
						<span style="color:red">信息举报</span>
					<?php elseif ($v['suggest_type'] == 2): ?>
						<span style="color:green">完善建议</span>
					<?php elseif ($v['suggest_type'] == 3): ?>
						<span style="color:orange">相关咨询</span>
					<?php elseif ($v['suggest_type'] == 4): ?>
						<span style="color:blue">考级反馈</span>
					<?php elseif ($v['suggest_type'] == 5): ?>
						<span style="color:pink">其他问题</span>
					<?php endif ?>
				</td>
				<td>{$v.suggest_time}</td>
				<td>
					<?php if ($v['suggest_status'] == 1): ?>
						<span style="color:red">未查看</span>
					<?php elseif ($v['suggest_status'] == 2): ?>
						<span style="color:green">已查看</span>
					<?php endif ?>
				</td>
				<td>
					<div class="hidden-sm hidden-xs btn-group">
						<div class="hidden-sm hidden-xs action-buttons">
							<a class="blue" style='cursor:pointer' title='查看反馈信息'onClick='location.href="__CONTROLLER__/suggest_details/suggest_id/{$v.suggest_id}"'>
								<i class="ace-icon fa fa-search-plus bigger-130"></i>
							</a>
						</div>
					</div>
				</td>
			</tr>
		    </foreach>
		</tbody>
	</table>
<div class="pages" style="float:right">{$page}</div>
</block>
<block name="scripts"></block>
<block name="jscript">
<script script="text/javascript">
    $(function(){
        $('#menu_suggest').addClass('active open');
        $('#menu_suggest_list').addClass('active');
    });
</script>
</block>